package jp.co.toshiba.ffsa.form.csas;

import org.seasar.struts.annotation.Arg;
import org.seasar.struts.annotation.Mask;
import org.seasar.struts.annotation.Maxlength;
import org.seasar.struts.annotation.Msg;
import org.seasar.struts.annotation.Required;
import org.seasar.struts.annotation.Validwhen;

/**
 * （パスワード忘れ）パスワード再登録画面Form
 * @author (NPC)
 */
public class Csas503Form {

    /** newパスワード */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="new_password", resource=true))
    @Maxlength(maxlength=12, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="new_password", resource=true), arg1=@Arg(key="12", resource=false))
    @Mask(mask="^[a-zA-Z0-9]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="new_password", resource=true))
    public String newPassword;
    /** reenterNewPassword */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="Reenter_new_password", resource=true))
    @Maxlength(maxlength=12, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="Reenter_new_password", resource=true), arg1=@Arg(key="12", resource=false))
    @Mask(mask="^[a-zA-Z0-9]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="Reenter_new_password", resource=true))
    @Validwhen(test = "(*this* == newPassword)", msg = @Msg(key = "errors.password_mismatch", resource=true))
    public String reenterNewPassword = "";

}
